package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.AccountDistrictMapper;
import com.hcb.micro.dto.AccountDistrict;
import com.hcb.micro.service.IAccountDistrictService;

@Service("AccountDistrictService")
public class AccountDistrictServiceImpl implements IAccountDistrictService {

	@Autowired
	AccountDistrictMapper accountDistrictMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return accountDistrictMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(AccountDistrict record) {
		return accountDistrictMapper.insert(record);
	}

	@Override
	public int insertSelective(AccountDistrict record) {
		return accountDistrictMapper.insertSelective(record);
	}

	@Override
	public AccountDistrict selectByPrimaryKey(Integer id) {
		return accountDistrictMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(AccountDistrict record) {
		return accountDistrictMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(AccountDistrict record) {
		return accountDistrictMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<AccountDistrict> selectByPara(Map<String, Object> para) {
		return accountDistrictMapper.selectByPara(para);
	}

}
